package persistence;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Set;


/**
 * The persistent class for the Firm_Address database table.
 * 
 */
@Entity
public class Firm_Address implements Serializable {
	private static final long serialVersionUID = 1L;
	private int idCitState;
	private String city;
	private String country;
	private String state;
	private Set<Firm> firms;
	private Set<Firm_has_Address> firmHasAddresses;

    public Firm_Address() {
    }


	@Id
	public int getIdCitState() {
		return this.idCitState;
	}

	public void setIdCitState(int idCitState) {
		this.idCitState = idCitState;
	}


	public String getCity() {
		return this.city;
	}

	public void setCity(String city) {
		this.city = city;
	}


	public String getCountry() {
		return this.country;
	}

	public void setCountry(String country) {
		this.country = country;
	}


	public String getState() {
		return this.state;
	}

	public void setState(String state) {
		this.state = state;
	}


	//bi-directional many-to-one association to Firm
	@OneToMany(mappedBy="firmAddress")
	public Set<Firm> getFirms() {
		return this.firms;
	}

	public void setFirms(Set<Firm> firms) {
		this.firms = firms;
	}
	

	//bi-directional many-to-one association to Firm_has_Address
	@OneToMany(mappedBy="firmAddress")
	public Set<Firm_has_Address> getFirmHasAddresses() {
		return this.firmHasAddresses;
	}

	public void setFirmHasAddresses(Set<Firm_has_Address> firmHasAddresses) {
		this.firmHasAddresses = firmHasAddresses;
	}
	
}